<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/hlht/stationHlhtTenantOpenPositive.js"></script>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>互联互通</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>站点开放管理</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });
    var has_add = '';
    var has_edit = '';
    var has_delete = '';
</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="row">
                    <input id="tenantOpenId" name="tenantOpenId" type="hidden" value="${hlhtTenantOpen.tenantOpenId}">
                    <input id="tenantCode" name="tenantCode" type="hidden" value="${hlhtTenantOpen.tenantCode}">
                    <input id="hlhtTenantCode" name="hlhtTenantCode" type="hidden"
                           value="${hlhtTenantOpen.hlhtTenantCode}">
                    <input id="hlhtOperatorId" name="hlhtOperatorId" type="hidden"
                           value="${hlhtTenantOpen.hlhtOperatorId}">
                    <input id="hlhtType" name="hlhtType" type="hidden" value="${hlhtTenantOpen.hlhtType}">

                    <div class="pull-left search col-md-2">
                        <input id="stationName" name="stationName" type="text" class="form-control"
                               placeholder="站点名称">
                    </div>
                    <div class="pull-left search col-md-2">
                        <select class="form-control" id="cityId" name="cityId">
                            <option value="">地区</option>
                            <c:forEach items="${cities}" var="city">
                                <option value="${city.cityId}">${city.cityName}</option>
                            </c:forEach>
                        </select>
                    </div>
                    <div class="pull-left search col-md-2">
                        <input id="address" name="address" type="text" class="form-control"
                               placeholder="地址">
                    </div>
                    <div class="pull-left search col-md-2">
                        <select class="form-control" id="openStationOperateStatus" name="openStationOperateStatus">
                            <option value="" selected>是否上线</option>
                            <option value="0" >未上线</option>
                            <option value="1" >上线</option>
                            <option value="2" >下线</option>
                        </select>
                    </div>
                    <div class="pull-left search col-md-2">
                        <button class="btn btn-success" onclick="stationHlhtTenantOpenPositive.reLoad()">查询</button>
                    </div>
                    <div class="pull-left search col-md-1">
                        <button type="button" class="btn btn-primary"
                                onclick="stationHlhtTenantOpenPositive.batchRows('1')">
                            批量上线
                        </button>
                    </div>
                    <div class="pull-left search col-md-1">
                        <button type="button" class="btn btn-danger"
                                onclick="stationHlhtTenantOpenPositive.batchRows('2')">
                            批量下线
                        </button>
                    </div>
                    <table id="exampleTable" data-mobile-responsive="true">
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    stationHlhtTenantOpenPositive.init();
</script>
</body>
</html>